function currentUser(currentUser) {
  var oWho = document.querySelector('.who')
  if (currentUser) {
    oWho.textContent = `亲爱的${currentUser.username}，点击新建按钮创建你的新专辑~`
  } else {
    oWho.textContent = "当前未登录，无法创建专辑，请先返回创作中心登陆哦~"
  }
}
window.onload=function () {
  var xhr = new XMLHttpRequest()
  xhr.open('get', '/studio/user/currentUser.json')
  xhr.onload= function () {
    console.log(this.responseText)

    var data = JSON.parse(this.responseText)
    currentUser(data)
  }
  xhr.send()
}